package com.jinghua.treatment.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysImMessagesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer limitEnd;

    public SysImMessagesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(Integer limitEnd) {
        this.limitEnd=limitEnd;
    }

    public Integer getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUuidIsNull() {
            addCriterion("`uuid` is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("`uuid` is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("`uuid` =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("`uuid` <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("`uuid` >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("`uuid` >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("`uuid` <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("`uuid` <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("`uuid` like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("`uuid` not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("`uuid` in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("`uuid` not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("`uuid` between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("`uuid` not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andMsgTitleIsNull() {
            addCriterion("`msg_title` is null");
            return (Criteria) this;
        }

        public Criteria andMsgTitleIsNotNull() {
            addCriterion("`msg_title` is not null");
            return (Criteria) this;
        }

        public Criteria andMsgTitleEqualTo(String value) {
            addCriterion("`msg_title` =", value, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleNotEqualTo(String value) {
            addCriterion("`msg_title` <>", value, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleGreaterThan(String value) {
            addCriterion("`msg_title` >", value, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleGreaterThanOrEqualTo(String value) {
            addCriterion("`msg_title` >=", value, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleLessThan(String value) {
            addCriterion("`msg_title` <", value, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleLessThanOrEqualTo(String value) {
            addCriterion("`msg_title` <=", value, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleLike(String value) {
            addCriterion("`msg_title` like", value, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleNotLike(String value) {
            addCriterion("`msg_title` not like", value, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleIn(List<String> values) {
            addCriterion("`msg_title` in", values, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleNotIn(List<String> values) {
            addCriterion("`msg_title` not in", values, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleBetween(String value1, String value2) {
            addCriterion("`msg_title` between", value1, value2, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgTitleNotBetween(String value1, String value2) {
            addCriterion("`msg_title` not between", value1, value2, "msgTitle");
            return (Criteria) this;
        }

        public Criteria andMsgContentIsNull() {
            addCriterion("`msg_content` is null");
            return (Criteria) this;
        }

        public Criteria andMsgContentIsNotNull() {
            addCriterion("`msg_content` is not null");
            return (Criteria) this;
        }

        public Criteria andMsgContentEqualTo(String value) {
            addCriterion("`msg_content` =", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentNotEqualTo(String value) {
            addCriterion("`msg_content` <>", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentGreaterThan(String value) {
            addCriterion("`msg_content` >", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentGreaterThanOrEqualTo(String value) {
            addCriterion("`msg_content` >=", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentLessThan(String value) {
            addCriterion("`msg_content` <", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentLessThanOrEqualTo(String value) {
            addCriterion("`msg_content` <=", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentLike(String value) {
            addCriterion("`msg_content` like", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentNotLike(String value) {
            addCriterion("`msg_content` not like", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentIn(List<String> values) {
            addCriterion("`msg_content` in", values, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentNotIn(List<String> values) {
            addCriterion("`msg_content` not in", values, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentBetween(String value1, String value2) {
            addCriterion("`msg_content` between", value1, value2, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentNotBetween(String value1, String value2) {
            addCriterion("`msg_content` not between", value1, value2, "msgContent");
            return (Criteria) this;
        }

        public Criteria andFromIdIsNull() {
            addCriterion("`from_id` is null");
            return (Criteria) this;
        }

        public Criteria andFromIdIsNotNull() {
            addCriterion("`from_id` is not null");
            return (Criteria) this;
        }

        public Criteria andFromIdEqualTo(Integer value) {
            addCriterion("`from_id` =", value, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromIdNotEqualTo(Integer value) {
            addCriterion("`from_id` <>", value, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromIdGreaterThan(Integer value) {
            addCriterion("`from_id` >", value, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("`from_id` >=", value, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromIdLessThan(Integer value) {
            addCriterion("`from_id` <", value, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromIdLessThanOrEqualTo(Integer value) {
            addCriterion("`from_id` <=", value, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromIdIn(List<Integer> values) {
            addCriterion("`from_id` in", values, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromIdNotIn(List<Integer> values) {
            addCriterion("`from_id` not in", values, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromIdBetween(Integer value1, Integer value2) {
            addCriterion("`from_id` between", value1, value2, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromIdNotBetween(Integer value1, Integer value2) {
            addCriterion("`from_id` not between", value1, value2, "fromId");
            return (Criteria) this;
        }

        public Criteria andFromWechatIsNull() {
            addCriterion("`from_wechat` is null");
            return (Criteria) this;
        }

        public Criteria andFromWechatIsNotNull() {
            addCriterion("`from_wechat` is not null");
            return (Criteria) this;
        }

        public Criteria andFromWechatEqualTo(String value) {
            addCriterion("`from_wechat` =", value, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatNotEqualTo(String value) {
            addCriterion("`from_wechat` <>", value, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatGreaterThan(String value) {
            addCriterion("`from_wechat` >", value, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatGreaterThanOrEqualTo(String value) {
            addCriterion("`from_wechat` >=", value, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatLessThan(String value) {
            addCriterion("`from_wechat` <", value, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatLessThanOrEqualTo(String value) {
            addCriterion("`from_wechat` <=", value, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatLike(String value) {
            addCriterion("`from_wechat` like", value, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatNotLike(String value) {
            addCriterion("`from_wechat` not like", value, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatIn(List<String> values) {
            addCriterion("`from_wechat` in", values, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatNotIn(List<String> values) {
            addCriterion("`from_wechat` not in", values, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatBetween(String value1, String value2) {
            addCriterion("`from_wechat` between", value1, value2, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andFromWechatNotBetween(String value1, String value2) {
            addCriterion("`from_wechat` not between", value1, value2, "fromWechat");
            return (Criteria) this;
        }

        public Criteria andToIdIsNull() {
            addCriterion("`to_id` is null");
            return (Criteria) this;
        }

        public Criteria andToIdIsNotNull() {
            addCriterion("`to_id` is not null");
            return (Criteria) this;
        }

        public Criteria andToIdEqualTo(Integer value) {
            addCriterion("`to_id` =", value, "toId");
            return (Criteria) this;
        }

        public Criteria andToIdNotEqualTo(Integer value) {
            addCriterion("`to_id` <>", value, "toId");
            return (Criteria) this;
        }

        public Criteria andToIdGreaterThan(Integer value) {
            addCriterion("`to_id` >", value, "toId");
            return (Criteria) this;
        }

        public Criteria andToIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("`to_id` >=", value, "toId");
            return (Criteria) this;
        }

        public Criteria andToIdLessThan(Integer value) {
            addCriterion("`to_id` <", value, "toId");
            return (Criteria) this;
        }

        public Criteria andToIdLessThanOrEqualTo(Integer value) {
            addCriterion("`to_id` <=", value, "toId");
            return (Criteria) this;
        }

        public Criteria andToIdIn(List<Integer> values) {
            addCriterion("`to_id` in", values, "toId");
            return (Criteria) this;
        }

        public Criteria andToIdNotIn(List<Integer> values) {
            addCriterion("`to_id` not in", values, "toId");
            return (Criteria) this;
        }

        public Criteria andToIdBetween(Integer value1, Integer value2) {
            addCriterion("`to_id` between", value1, value2, "toId");
            return (Criteria) this;
        }

        public Criteria andToIdNotBetween(Integer value1, Integer value2) {
            addCriterion("`to_id` not between", value1, value2, "toId");
            return (Criteria) this;
        }

        public Criteria andToWechatIsNull() {
            addCriterion("`to_wechat` is null");
            return (Criteria) this;
        }

        public Criteria andToWechatIsNotNull() {
            addCriterion("`to_wechat` is not null");
            return (Criteria) this;
        }

        public Criteria andToWechatEqualTo(String value) {
            addCriterion("`to_wechat` =", value, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatNotEqualTo(String value) {
            addCriterion("`to_wechat` <>", value, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatGreaterThan(String value) {
            addCriterion("`to_wechat` >", value, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatGreaterThanOrEqualTo(String value) {
            addCriterion("`to_wechat` >=", value, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatLessThan(String value) {
            addCriterion("`to_wechat` <", value, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatLessThanOrEqualTo(String value) {
            addCriterion("`to_wechat` <=", value, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatLike(String value) {
            addCriterion("`to_wechat` like", value, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatNotLike(String value) {
            addCriterion("`to_wechat` not like", value, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatIn(List<String> values) {
            addCriterion("`to_wechat` in", values, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatNotIn(List<String> values) {
            addCriterion("`to_wechat` not in", values, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatBetween(String value1, String value2) {
            addCriterion("`to_wechat` between", value1, value2, "toWechat");
            return (Criteria) this;
        }

        public Criteria andToWechatNotBetween(String value1, String value2) {
            addCriterion("`to_wechat` not between", value1, value2, "toWechat");
            return (Criteria) this;
        }

        public Criteria andSendTimeIsNull() {
            addCriterion("`send_time` is null");
            return (Criteria) this;
        }

        public Criteria andSendTimeIsNotNull() {
            addCriterion("`send_time` is not null");
            return (Criteria) this;
        }

        public Criteria andSendTimeEqualTo(Date value) {
            addCriterion("`send_time` =", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeNotEqualTo(Date value) {
            addCriterion("`send_time` <>", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeGreaterThan(Date value) {
            addCriterion("`send_time` >", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("`send_time` >=", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeLessThan(Date value) {
            addCriterion("`send_time` <", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeLessThanOrEqualTo(Date value) {
            addCriterion("`send_time` <=", value, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeIn(List<Date> values) {
            addCriterion("`send_time` in", values, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeNotIn(List<Date> values) {
            addCriterion("`send_time` not in", values, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeBetween(Date value1, Date value2) {
            addCriterion("`send_time` between", value1, value2, "sendTime");
            return (Criteria) this;
        }

        public Criteria andSendTimeNotBetween(Date value1, Date value2) {
            addCriterion("`send_time` not between", value1, value2, "sendTime");
            return (Criteria) this;
        }

        public Criteria andMsgStatusIsNull() {
            addCriterion("`msg_status` is null");
            return (Criteria) this;
        }

        public Criteria andMsgStatusIsNotNull() {
            addCriterion("`msg_status` is not null");
            return (Criteria) this;
        }

        public Criteria andMsgStatusEqualTo(String value) {
            addCriterion("`msg_status` =", value, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusNotEqualTo(String value) {
            addCriterion("`msg_status` <>", value, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusGreaterThan(String value) {
            addCriterion("`msg_status` >", value, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusGreaterThanOrEqualTo(String value) {
            addCriterion("`msg_status` >=", value, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusLessThan(String value) {
            addCriterion("`msg_status` <", value, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusLessThanOrEqualTo(String value) {
            addCriterion("`msg_status` <=", value, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusLike(String value) {
            addCriterion("`msg_status` like", value, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusNotLike(String value) {
            addCriterion("`msg_status` not like", value, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusIn(List<String> values) {
            addCriterion("`msg_status` in", values, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusNotIn(List<String> values) {
            addCriterion("`msg_status` not in", values, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusBetween(String value1, String value2) {
            addCriterion("`msg_status` between", value1, value2, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgStatusNotBetween(String value1, String value2) {
            addCriterion("`msg_status` not between", value1, value2, "msgStatus");
            return (Criteria) this;
        }

        public Criteria andMsgTypeIsNull() {
            addCriterion("`msg_type` is null");
            return (Criteria) this;
        }

        public Criteria andMsgTypeIsNotNull() {
            addCriterion("`msg_type` is not null");
            return (Criteria) this;
        }

        public Criteria andMsgTypeEqualTo(String value) {
            addCriterion("`msg_type` =", value, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeNotEqualTo(String value) {
            addCriterion("`msg_type` <>", value, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeGreaterThan(String value) {
            addCriterion("`msg_type` >", value, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeGreaterThanOrEqualTo(String value) {
            addCriterion("`msg_type` >=", value, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeLessThan(String value) {
            addCriterion("`msg_type` <", value, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeLessThanOrEqualTo(String value) {
            addCriterion("`msg_type` <=", value, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeLike(String value) {
            addCriterion("`msg_type` like", value, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeNotLike(String value) {
            addCriterion("`msg_type` not like", value, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeIn(List<String> values) {
            addCriterion("`msg_type` in", values, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeNotIn(List<String> values) {
            addCriterion("`msg_type` not in", values, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeBetween(String value1, String value2) {
            addCriterion("`msg_type` between", value1, value2, "msgType");
            return (Criteria) this;
        }

        public Criteria andMsgTypeNotBetween(String value1, String value2) {
            addCriterion("`msg_type` not between", value1, value2, "msgType");
            return (Criteria) this;
        }

        public Criteria andWhosIsNull() {
            addCriterion("`whos` is null");
            return (Criteria) this;
        }

        public Criteria andWhosIsNotNull() {
            addCriterion("`whos` is not null");
            return (Criteria) this;
        }

        public Criteria andWhosEqualTo(String value) {
            addCriterion("`whos` =", value, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosNotEqualTo(String value) {
            addCriterion("`whos` <>", value, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosGreaterThan(String value) {
            addCriterion("`whos` >", value, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosGreaterThanOrEqualTo(String value) {
            addCriterion("`whos` >=", value, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosLessThan(String value) {
            addCriterion("`whos` <", value, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosLessThanOrEqualTo(String value) {
            addCriterion("`whos` <=", value, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosLike(String value) {
            addCriterion("`whos` like", value, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosNotLike(String value) {
            addCriterion("`whos` not like", value, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosIn(List<String> values) {
            addCriterion("`whos` in", values, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosNotIn(List<String> values) {
            addCriterion("`whos` not in", values, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosBetween(String value1, String value2) {
            addCriterion("`whos` between", value1, value2, "whos");
            return (Criteria) this;
        }

        public Criteria andWhosNotBetween(String value1, String value2) {
            addCriterion("`whos` not between", value1, value2, "whos");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}